<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>创建节点</title>
</head>
<body>
  <script>
    //创建一个div标签
    var div = document.createElement( 'div');
    //控制台输出
    console.log(div)
  </script>
</body>
</html>